<html>

<head>
  <meta charset="utf-8">
  <title>设备预约</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">
  <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>

<body>

<fieldset class="layui-elem-field layui-field-title" style="margin-top:20px">
  <legend style="margin:0px auto">设备预约表</legend>
</fieldset>

<div style="width:1200px;margin:0px auto">
  <div class="layui-row">
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>预约人：</b> {{ applyRecord.student.userName }}
    </div>

    <div class="layui-inline layui-col-lg4 layui-text " id={{applyRecord.id}}>
      <b>预约时间：</b> {{ applyRecord.eDate|date:"Y-m-d"}} 
    </div>
    <script type="text/javascript">
      var start = '{{applyRecord.eBegin}}';
      var end = '{{applyRecord.eEnd}}';
      var start_hours = Math.floor( start * 30 / 60);          
      var start_minutes = start * 30 % 60;
      var end_hours = Math.floor( end * 30 / 60);          
      var end_minutes = end * 30 % 60;
      $("#{{applyRecord.id}}").append(" " + ( "0" + start_hours).substr(-2)+":"+ ( "0" + start_minutes).substr(-2) + "-" + ( "0" + end_hours).substr(-2)+":"+ ( "0" + end_minutes).substr(-2));
    </script>
  </div>
  <div class="layui-row">
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>设备名称：</b> {{ applyRecord.equipment.eName }}
    </div>
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>设备型号：</b> {{ applyRecord.equipment.eModel }}
    </div>
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>安装地点：</b> {{ applyRecord.equipment.eLocation }}
    </div>
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>负责教师：</b> {{ applyRecord.equipment.eDirector.userName }}
    </div>
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>教师电话：</b> {{ applyRecord.equipment.eDirector.userPhone }}
    </div>

  </div class="layui-row">
  <div>
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>支付方式：</b> {{ applyRecord.paymentMethod }}
    </div>
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>指导教师：</b> {{ applyRecord.director }}
    </div>
  </div>
  <div class="layui-row">
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>项目名称：</b> {{ applyRecord.projectName }}
    </div>
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>项目代码：</b> {{ applyRecord.projectCode }}
    </div>
    <div class="layui-inline layui-col-lg4 layui-text">
      <b>项目类型：</b> {{ applyRecord.projectType }}
    </div>
  </div>

  <div class="layui-text">
    <b>实验内容：</b> {{ applyRecord.experimentContent }}
  </div>
  <div class="layui-text">
    <b>实验说明：</b> {{ applyRecord.experimentNote }}
  </div>
</div>
    


<script src="../../static/layui/layui.js" charset="utf-8"></script>
  <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->

</body>
</html>